package com.shenma2009;

/**
 * @author 军哥
 * @version 1.0
 * @description: TestThreadApp
 * @date 2023/5/24 10:26
 */

public class TestThreadApp {
    public static void main(String[] args) {
        Thread thread = new Thread();
        while(true) {
            boolean alive = thread.isAlive();
            if(alive) {
                Thread.yield();
                continue;
            }
            else {
                break;
            }
        }

        //

    }
}
